package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FishDeviceWarnMapper;
import com.ruoyi.system.domain.FishDeviceWarn;
import com.ruoyi.system.service.IFishDeviceWarnService;

/**
 * 预警信息列Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-16
 */
@Service
public class FishDeviceWarnServiceImpl implements IFishDeviceWarnService 
{
    @Autowired
    private FishDeviceWarnMapper fishDeviceWarnMapper;

    /**
     * 查询预警信息列
     * 
     * @param id 预警信息列主键
     * @return 预警信息列
     */
    @Override
    public FishDeviceWarn selectFishDeviceWarnById(Long id)
    {
        return fishDeviceWarnMapper.selectFishDeviceWarnById(id);
    }

    /**
     * 查询预警信息列列表
     * 
     * @param fishDeviceWarn 预警信息列
     * @return 预警信息列
     */
    @Override
    public List<FishDeviceWarn> selectFishDeviceWarnList(FishDeviceWarn fishDeviceWarn)
    {
        return fishDeviceWarnMapper.selectFishDeviceWarnList(fishDeviceWarn);
    }

    /**
     * 新增预警信息列
     * 
     * @param fishDeviceWarn 预警信息列
     * @return 结果
     */
    @Override
    public int insertFishDeviceWarn(FishDeviceWarn fishDeviceWarn)
    {
        return fishDeviceWarnMapper.insertFishDeviceWarn(fishDeviceWarn);
    }

    /**
     * 修改预警信息列
     * 
     * @param fishDeviceWarn 预警信息列
     * @return 结果
     */
    @Override
    public int updateFishDeviceWarn(FishDeviceWarn fishDeviceWarn)
    {
        return fishDeviceWarnMapper.updateFishDeviceWarn(fishDeviceWarn);
    }

    /**
     * 批量删除预警信息列
     * 
     * @param ids 需要删除的预警信息列主键
     * @return 结果
     */
    @Override
    public int deleteFishDeviceWarnByIds(Long[] ids)
    {
        return fishDeviceWarnMapper.deleteFishDeviceWarnByIds(ids);
    }

    /**
     * 删除预警信息列信息
     * 
     * @param id 预警信息列主键
     * @return 结果
     */
    @Override
    public int deleteFishDeviceWarnById(Long id)
    {
        return fishDeviceWarnMapper.deleteFishDeviceWarnById(id);
    }
}
